package org.panda.tcmoc.domain;

import org.panda.tcmoc.config.Configure;

public class AccountType extends ModelObject {
	private String code;
	private String label;

	public AccountType() {
		super();
	}

	public AccountType(String code) {
		super();
		this.setCode(code);
		this.setLabel(Configure.ACCOUNT_TYPE_MAP.get(code));
		;

	}

	public String toString() {
		return code + "-" + label;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

}
